public class Test {
    public static void main(String[] args) {
        DoubleList doubleList =new DoubleList();
        doubleList.addLast(1);
        doubleList.addLast(3);
        doubleList.addLast(1);
        doubleList.addLast(5);
        doubleList.display();
        System.out.println();
        doubleList.remove(1);
        doubleList.display();
        System.out.println("==============");
        doubleList.clear();
        doubleList.display();

    }

    public static void main3(String[] args) {
        DoubleList doubleList =new DoubleList();
        doubleList.addLast(4);
        doubleList.addLast(3);
        doubleList.addLast(2);
        doubleList.addLast(1);
        doubleList.display();
        System.out.println();
        System.out.println(doubleList.contains(3));

    }

    public static void main2(String[] args) {
        DoubleList doubleList = new DoubleList();
        doubleList.addLast(5);
        doubleList.addLast(4);
        doubleList.addLast(3);
        doubleList.addLast(2);
        doubleList.addLast(1);
        doubleList.display();
        System.out.println();
        doubleList.addIndex(2,13);
        doubleList.display();
    }

    public static void main1(String[] args) {
        DoubleList doubleList = new DoubleList();
        doubleList.addFirst(5);
        doubleList.addFirst(4);
        doubleList.addFirst(3);
        doubleList.display();
/*        System.out.println();
        doubleList.addIndex(2,10);
        doubleList.display();*/
    }
}
